var slideimages=new Array();
var slidelinks=new Array();
var defaultImg = document.getElementById("show").getElementsByTagName("img")[0];
var imgNodes = document.getElementById("scroll").getElementsByTagName("img");
var linkNodes = document.getElementById("scroll").getElementsByTagName("a");
slideimages[0]=imgNodes[0].src;
slideimages[1]=imgNodes[1].src;
slideimages[2]=imgNodes[2].src;
slideimages[3]=imgNodes[3].src;
slideimages[4]=imgNodes[4].src;
slidelinks[0]=linkNodes[0].href;
slidelinks[1]=linkNodes[1].href;
slidelinks[2]=linkNodes[2].href;
slidelinks[3]=linkNodes[3].href;
slidelinks[4]=linkNodes[4].href;
var slidespeed=3000
var slidesanjiaoimages=new Array("http://localhost/liewz/wp-content/themes/inews-v2/images/bian2.gif","http://localhost/liewz/wp-content/themes/inews-v2/images/bian1.gif");
var slidesanjiaoimagesname=new Array("xiaosan1","xiaosan2","xiaosan3","xiaosan4","xiaosan5");
var filterArray=new Array();
filterArray[0]="progid:DXImageTransform.Microsoft.Pixelate(enabled=false,duration=2,maxSquare=3)";
filterArray[1]="progid:DXImageTransform.Microsoft.Stretch(duration=1,stretchStyle=PUSH)";
filterArray[2]="progid:DXImageTransform.Microsoft.Stretch(duration=1)";
filterArray[3]="progid:DXImageTransform.Microsoft.Slide(bands=8,duration=1)";
filterArray[4]="progid:DXImageTransform.Microsoft.Fade(duration=1,overlap=0.25)";
var imageholder=new Array()
var ie55=window.createPopup
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}
function tu_ove(){clearTimeout(setID)}
function ou(){slideit()}
var whichlink=0
var whichimage=0
function gotoshow(){
window.open(slidelinks[whichlink]);
}
function slideit(){
defaultImg.style.filter=filterArray[whichimage];
pixeldelay=(ie55)? (defaultImg.filters[0].duration*1000) : 0
if (!document.images) return
if (ie55) {
defaultImg.filters[0].apply();
defaultImg.filters[0].play();
}
defaultImg.src=imageholder[whichimage].src
document.getElementById("xiaosan1").src=slidesanjiaoimages[0];
document.getElementById("xiaosan2").src=slidesanjiaoimages[0];
document.getElementById("xiaosan3").src=slidesanjiaoimages[0];
document.getElementById("xiaosan4").src=slidesanjiaoimages[0];
document.getElementById("xiaosan5").src=slidesanjiaoimages[0];
document.getElementById(slidesanjiaoimagesname[whichimage]).src=slidesanjiaoimages[1];
if (ie55) defaultImg.filters[0].play()
whichlink=whichimage
whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
setID=setTimeout("slideit()",slidespeed+pixeldelay)
}
slideit()
function ove(n){
clearTimeout(setID)
whichimage=n;
defaultImg.src=imageholder[whichimage].src
document.getElementById("xiaosan1").src=slidesanjiaoimages[0];
document.getElementById("xiaosan2").src=slidesanjiaoimages[0];
document.getElementById("xiaosan3").src=slidesanjiaoimages[0];
document.getElementById("xiaosan4").src=slidesanjiaoimages[0];
document.getElementById("xiaosan5").src=slidesanjiaoimages[0];
document.getElementById(slidesanjiaoimagesname[whichimage]).src=slidesanjiaoimages[1];
}